package com.len.mapper;

import com.len.base.BaseMapper;
import com.len.entity.TProductDemand;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProductDemandMapper extends BaseMapper<TProductDemand,String> {
    @Select(" delete from t_product_demand where order_no = #{orderNo}")
    void delAllByOrderNo(String orderNo);

    @Select(" select * from t_product_demand where order_no = #{orderNo}")
    List<TProductDemand> selectAllByOrderNo(String orderNo);

    @Select("select * from t_product_demand where order_no = #{orderNo}")
    List<TProductDemand> selectListByOrderNo(String orderNo);
}
